//
//  LoadingViewController.m
//  SmartCoin
//
//  Created by apple on 2018/3/23.
//  Copyright © 2018年 Cynic. All rights reserved.
//

#import "LoadingViewController.h"
#import "ViewController.h"
@interface LoadingViewController ()

@end

@implementation LoadingViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    UIImageView *imageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, cxsingler.topdis - cxsingler.navitop, cx_wid, cx_hit - cxsingler.topdis - cxsingler.bottomdis + cxsingler.navitop)];
    imageView.image = [UIImage imageNamed:@"启动图3"];//此前用于显示loading界面，延时完成getversion请求，方便内部校准显示规避审_核
    [self.view addSubview:imageView];
    [self dataLoad];
    [self performSelector:@selector(jumself) withObject:nil afterDelay:3];
}

-(void)dataLoad{
    NetWorkModel *netModel = [[NetWorkModel alloc] init];
    netModel.sendMessage = ^(NSString *result) {
        if ([result isEqual:@"success"]) {
            
        }
        else{
            
        }
    };
    [netModel getSettinginfo];
}

-(void)jumself{
    ViewController *nextVC = [[ViewController alloc] init];
    UINavigationController *navi = [[UINavigationController alloc] initWithRootViewController:nextVC];
    [self presentViewController:navi animated:NO completion:nil];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
